<script>
	const httpRequest = require("@/common/httpRequest.js")
	const newTime = new Date()
	export default {
		onLaunch: function(options) {
			let token = uni.getStorageSync("token")
			if (!token) {
				uni.reLaunch({
					url: "/pages/login/wiexinhydl"
				})
			}
			if(token){
				this.getLogin()
			}
			if (options.query.invite_code) {
				uni.setStorageSync('yqrinvite_code', options.query.invite_code);
			}
			
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			getLogin(){
				const lastLoginTime = uni.getStorageSync("loginTime")
				httpRequest.request('/api/index/getConfigInfo', 'GET', {}, false, false, true).then(res => {
					if(lastLoginTime){
						if (Number(lastLoginTime) + res.data.fk_time * 60 * 1000 <= Number(newTime)) {
							this.addfkl()
						} 
					}else {
						this.addfkl()
					}
				})
				
			},
			addfkl(){
				httpRequest.request('/api/user/createUserViews', 'GET', {}, false, false, true).then(res => {
					if (res.code == 1) {
						uni.setStorageSync('loginTime', Number(newTime));
					}
				})
			}
			
		}
	}
</script>
<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
</style>

<style lang="scss">
	.header_pt {
		color: #FD463E;
		padding: 4rpx 16rpx 4rpx 16rpx;
		background: RGBA(255, 237, 236, 1);
		border-radius: 27rpx 27rpx 27rpx 27rpx;
		// margin-right: 30rpx;
		font-size: 24rpx;
	}
	.minwidth {
		width: 300rpx;
	}

	.footertextdaodi {
		text-align: center;
		margin-top: 54rpx;
		padding-bottom: 54rpx;
	}

	.placeimage {
		width: 400rpx;
		height: 450rpx;
		background-image: url("@/static/images/system/placeimage.png");
		background-size: 100%, 100%;
	}

	/*每个页面公共css */
	button::after {
		border: none;
	}

	button {
		border-radius: 0;
		background-color: #fff;
		line-height: 40rpx;
	}

	.flextop {
		display: flex;
		align-items: flex-start;
		justify-content: center;
	}

	.flextops {
		display: flex;
		align-items: flex-start;
	}

	.flexcenter {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.flexcolumn {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
	}

	.flexbottom {
		display: flex;
		align-items: flex-end;
		justify-content: center;
	}

	.flexbetween {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.flexleft {
		display: flex;
		align-items: center;
	}

	.smalltext {
		font-size: 20rpx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #333333;
	}

	.flexright {
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}

	.flexaround {
		display: flex;
		justify-content: space-around;
		align-items: center;
	}

	.flexstart {
		display: flex;
		justify-content: flex-start;
		align-items: flex-start;
	}

	.flex_wrap {
		flex-wrap: wrap;
	}

	//灰色指标
	.huoche {
		background-image: url('@/static/images/xiangqing_slices/greyleft.png');
		width: 26.5rpx;
		height: 8.5rpx;
		background-size: 100% 100%;
	}

	//蓝色指标
	.huoche_bluer {
		background-image: url('@/static/images/sy_slices/fangxiang.png');
		width: 57rpx;
		height: 20rpx;
		background-size: 100% 100%;
	}

	.fanhui {
		background-image: url('@/static/images/xiangqing_slices/rightjian.png');
		width: 100rpx;
		height: 60rpx;
		background-size: 100% 100%;
	}

	//返回
	.right_icon {
		background-image: url('@/static/images/xiangqing_slices/rightjian.png');
		width: 15rpx;
		height: 25rpx;
		background-size: 100% 100%;
	}

	.textright {
		text-align: right;
	}

	textarea {
		height: 150rpx;
		width: 100%;
	}

	// 灰色字体
	.hui {
		font-size: 24rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #999999;
	}

	.word_greys {
		font-size: 24rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #666666;
	}

	.word_hei {
		font-size: 30rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #000000;
	}

	.word_bluer {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #228DFF;
	}

	.word_grey {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #999999;
	}

	.province_jiangsu {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #228DFF;
		background-color: RGBA(233, 244, 255, 1);
		padding: 7rpx 11rpx 7rpx 11rpx;
	}

	.word_black {
		font-size: 27rpx;
		font-family: PingFang SC-Heavy, PingFang SC;
		font-weight: 800;
		color: #000000;
	}

	.word_red {
		font-size: 27rpx;
		font-family: PingFang SC-Heavy, PingFang SC;
		font-weight: 800;
		color: rgba(255, 0, 0, 1);
	}

	.text_weight {
		font-size: 28rpx;
		font-family: PingFang SC-Heavy, PingFang SC;
		font-weight: 800;
		color: #000000;
	}

	.word_weight {
		font-size: 30rpx;
		font-family: PingFang SC-Heavy, PingFang SC;
		font-weight: 800;
		color: #000000;
	}

	.text_grey {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #999999;
	}

	.word_red {
		height: 36rpx;
		font-size: 30rpx;
		font-family: DIN Next LT Pro-Bold, DIN Next LT Pro;
		font-weight: bold;
		color: #FD463E;
	}

	// 直达
	.border_zhida {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #228DFF;
		border: 1rpx solid rgba(34, 141, 255, 1);
		padding: 0rpx 10rpx;

		text-align: center;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
	}

	//中转
	.border_zhongzhuan {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: RGBA(254, 170, 16, 1);
		border: 1rpx solid RGBA(255, 165, 0, 1);
		padding: 0rpx 10rpx;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
	}

	.xiarotate {
		transform: rotate(90deg);
		transition: all .5s;
		width: 13rpx;
		height: 24rpx;
		background-image: url('@/static/images/xiangqing_slices/rightjian.png');
		background-size: 100% 100%;
	}

	.rightrotate {
		// transform:rotate(-90deg);
		transition: all .5s;
		width: 13rpx;
		height: 24rpx;
		background-image: url('@/static/images/xiangqing_slices/rightjian.png');
		background-size: 100% 100%;
	}

	/*每个页面公共css */
	.mainpadding {
		padding: 30rpx;
	}

	.mainpadding_top {
		padding: 30rpx;
		margin-top: 30rpx;
		box-sizing: border-box;
	}

	.mainpadding2 {
		padding: 0 30rpx 30rpx 30rpx;
	}

	.margin_top {
		margin-top: 30rpx;
	}

	.margin_right {
		margin-right: 20rpx;
	}

	.ffffff {
		background-color: #fff;
	}

	.radius {
		border-radius: 20rpx;
	}

	.mainbgc {
		background-color: #FAFAFA;
		min-height: calc(100vh);
		box-sizing: border-box;
	}

	.titletext {
		font-size: 32rpx;
		color: #333333;
		font-weight: bold;
	}

	.strongtext {
		font-size: 28rpx;
		color: #333333;
		font-weight: bold;
	}

	.vip {
		font-size: 24rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFA500;
		padding: 4rpx 16rpx 4rpx 16rpx;
		background: #fff6e6;
		border-radius: 27rpx 27rpx 27rpx 27rpx;
	}

	.ccimg_relative {
		position: relative;
	}

	.right_chuzu {
		position: absolute;
		left: 0;
		top: 0rpx;
		padding: 4rpx 16rpx 3rpx 16rpx;
		font-size: 16rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		background-color: rgba(34, 141, 255, 1);
		border-bottom-right-radius: 8rpx;
		border-top-left-radius: 8rpx;
	}

	.marginleft {
		margin-left: 30rpx;
	}

	.right_chushou {
		position: absolute;
		left: 0;
		top: 0rpx;
		padding: 4rpx 16rpx 3rpx 16rpx;
		font-size: 16rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		background-color: rgba(243, 101, 32, 1);
		border-bottom-right-radius: 8rpx;
		border-top-left-radius: 8rpx;
	}

	// 查看详情按钮
	.look_details {
		font-size: 26rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		padding: 15rpx 0rpx;
		border-radius: 10rpx 10rpx 10rpx 10rpx;
		background: rgba(53, 155, 254, 1);
		text-align: center;
	}

	//筛选
	.screen {
		background-image: url('@/static/images/xiangqing_slices/screen.png');
		width: 23rpx;
		height: 23rpx;
		background-size: 100% 100%;
	}

	//
	.locations {
		background-image: url('@/static/images/xiangqing_slices/location.png');
		width: 50.66rpx;
		height: 50.66rpx;
		background-size: 100% 100%;
	}

	// 电话
	.phone {
		background-image: url('@/static/images/xiangqing_slices/phone.png');
		width: 50.66rpx;
		height: 50.66rpx;
		background-size: 100% 100%;
	}

	//分享
	.share {
		background-image: url('@/static/images/details/share.png');
		width: 35rpx;
		height: 35rpx;
		background-size: 100% 100%;
	}

	//未收藏
	.star {
		background-image: url('@/static/images/details/star.png');
		width: 40rpx;
		height: 40rpx;
		background-size: 100% 100%;
	}

	//已收藏
	.collect_star {
		background-image: url('@/static/images/xiangqing_slices/collect_star.png');
		width: 40rpx;
		height: 40rpx;
		background-size: 100% 100%;
	}

	// 论坛详情图片
	// .image_ya {
	// 	width: 77rpx;
	// 	height: 77rpx;
	// 	background-size: 100% 100%;
	// 	background-image: url('@/static/images/xiangqing_slices/ya.png');
	// 	border-radius: 50%;
	// }
	.yxlable {
		padding: 5rpx 10rpx;
		background-color: rgba(32, 141, 252, .3);
		color: rgba(32, 141, 252, 1);
		border-radius: 0 10rpx 0 10rpx;
		position: absolute;
		top: 0;
		right: 0;
		font-size: 22rpx;
	}

	.relative {
		position: relative;
	}

	//简历图片
	.resume {
		background-image: url('@/static/images/xiangqing_slices/book.png');
		width: 56rpx;
		height: 56rpx;
		background-size: 100% 100%;
	}

	//蓝色上箭头
	.blue_up {
		background-image: url('@/static/images/xiangqing_slices/blue_up.png');
		width: 2.5;
		height: 15rpx;
		background-size: 100% 100%;
	}

	//蓝色下箭头
	.blue_bottom {
		background-image: url('@/static/images/xiangqing_slices/blue_arrow.png');
		width: 2.5rpx;
		height: 15rpx;
		background-size: 100% 100%;
	}

	//灰色下箭头
	.grey_bottom {
		background-image: url('@/static/images/xiangqing_slices/grey_bottom.png');
		width: 2.5rpx;
		height: 15rpx;
		background-size: 100% 100%;
	}

	//灰色上箭头
	.grey_top {
		background-image: url('@/static/images/xiangqing_slices/grey_up.png');
		width: 2.5rpx;
		height: 15rpx;
		background-size: 100% 100%;
	}

	//直达图标
	.greyleft {
		background-image: url('@/static/images/xiangqing_slices/greyleft.png');
		width: 26.5rpx;
		height: 8.5rpx;
		margin: 0rpx 15rpx;
		background-size: 100% 100%;
	}

	//中转图标
	.transfer {
		background-image: url('@/static/images/xiangqing_slices/zhongzhuan.png');
		width: 26.5rpx;
		height: 21.5rpx;
		margin: 0rpx 15rpx;
		background-size: 100% 100%;
	}

	//四个照片
	// .fours {
	// 	background-image: url('@/static/images/xiangqing_slices/ya.png');
	// 	width: 144rpx;
	// 	height: 144rpx;
	// 	background-size: 100% 100%;
	// 	border-radius: 15rpx 15rpx 15rpx 15rpx;
	// }

	//❌
	.deletimg {
		background-image: url("@/static/images/system/delete.png");
		width: 30rpx;
		height: 30rpx;
		position: absolute;
		right: 15rpx;
		background-size: 100%, 100%;
		top: 15rpx;
	}

	//叉号
	.cha {
		background-image: url("@/static/images/system/cha.png");
		width: 18rpx;
		height: 18rpx;
		background-size: 100%, 100%;
	}

	//删除
	.del {
		background-image: url("/static/images/sy_slices/del.png");
		background-size: 100% 100%;
		width: 26.17rpx;
		height: 26.17rpx;
	}

	//编辑图标
	.bianji {
		width: 26.17rpx;
		height: 26.17rpx;
		background-image: url('/static/images/xiangqing_slices/bianji.png');
		background-size: 100% 100%;
	}

	// 下架
	.xiajia {
		background-image: url("/static/images/sy_slices/xiajia.png");
		background-size: 100% 100%;
		width: 26.17rpx;
		height: 26.17rpx;
	}

	//黑色定位
	.location {
		background-image: url('@/static/images/sy_slices/dibiao.png');
		width: 16rpx;
		height: 23rpx;
		background-size: 100% 100%;
		margin-right: 14rpx;
	}

	//照相机图片
	.camera {
		background-image: url('@/static/images/system/camera.png');
		width: 68rpx;
		height: 56rpx;
		background-size: 100% 100%;
	}

	//视频图片
	.video {
		background-image: url('@/static/images/system/vedio_img.png');
		width: 68rpx;
		height: 56rpx;
		background-size: 100% 100%;
	}

	//蓝色渐变
	.lan_img {
		width: 127rpx;
		height: 10rpx;
		background-image: url('static/images/system/blue.png');
		background-size: 100% 100%;
	}

	//灰色小角标
	.grey_jiao {
		background-image: url('/static/images/xiangqing_slices/gray_jiao.png');
		width: 8rpx;
		height: 12rpx;
		background-size: 100% 100%;
		padding-left: 6rpx;
	}

	.bottombtn {
		width: 100%;
		padding: 20rpx 0;
		box-sizing: border-box;
		background-color: #359BFE;
		border-radius: 50rpx;
		text-align: center;
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
	}

	/* 确定重置按钮 */
	.surebtn {
		width: 45%;
		background-color: #228DFF;
		padding: 20rpx 0;
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		text-align: center;
		border-radius: 50rpx;
	}

	.resetbtn {
		width: 45%;
		border: 1rpx solid #228DFF;
		padding: 20rpx 0;
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #228DFF;
		text-align: center;
		border-radius: 50rpx;
	}

	/* 去掉弹出层底部边距 */
	/deep/.u-safe-area-inset-bottom {
		padding-bottom: 0;
	}

	/* 上传图片框 */
	.upimagebox {
		width: 180rpx;
		height: 180rpx;
		font-size: 20rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #666666;
		background-color: #F7F7F7;
	}

	//上传简历附件图片
	.resume {
		width: 95rpx;
		height: 94rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.upimage {
		width: 68rpx;
		height: 56rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.lianghang {
		overflow: hidden;
		-webkit-line-clamp: 2;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.xiahuijt {
		margin-top: 6rpx;
		width: 13rpx;
		height: 10rpx;
		background-image: url('@/static/images/xiangqing_slices/xiahuijtpng.png');
		background-size: 100% 100%;
	}

	.shanghuijt {
		width: 13rpx;
		height: 10rpx;
		background-image: url('@/static/images/xiangqing_slices/shanghuijt.png');
		background-size: 100% 100%;
	}

	.shangljt {
		width: 13rpx;
		height: 10rpx;
		background-image: url('@/static/images/xiangqing_slices/shangljt.png');
		background-size: 100% 100%;
	}

	.xialjt {
		margin-top: 6rpx;
		width: 13rpx;
		height: 10rpx;
		background-image: url('@/static/images/xiangqing_slices/xialjt.png');
		background-size: 100% 100%;
	}

	.paddingbottom {
		padding-bottom: 200rpx;
	}

	// 
	.zwtimg {
		margin-top: 300rpx;

		image {
			width: 350rpx;
			height: 350rpx;
		}
	}

	.zitbjs {
		position: absolute;
		bottom: 0;
		left: 0;
		width: 127rpx;
		height: 10rpx;
		background-size: 100% 100%;
		// background-image: url('@/static/image/system/ztbjs.png');
	}

	/*每个页面公共css */
	.xiaohuangbtn {
		font-size: 32rpx;
		font-family: PingFang SC-Heavy, PingFang SC;
		font-weight: 800;
		color: #FFFFFF;
		width: 226rpx;
		height: 76rpx;
		border-radius: 120rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: #FFC059;
	}


	.gudingdb {
		padding: 30rpx 30rpx 60rpx;
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		box-sizing: border-box;
	}

	.bigbtn {
		background-color: RGBA(38, 144, 255, 1);
		border-radius: 41rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 82rpx;
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
	}

	.weigouxuan {
		width: 40rpx;
		height: 40rpx;
		background-size: 100% 100%;
		background-image: url('@/static/images/login/to.png');
	}

	.yigouxuan {
		width: 40rpx;
		height: 40rpx;
		background-size: 100% 100%;
		background-image: url('@/static/images/login/weixuanz.png');
	}



	.dingwei {
		position: relative;
	}


	.margin_right4 {
		margin-right: 40rpx;
	}


	.margin_right1 {
		margin-right: 10rpx;
	}



	.margin_top2 {
		margin-top: 20rpx;
	}

	.margin_top1 {
		margin-top: 20rpx;
	}



	.textcenter {
		text-align: center;
	}


	.xiankuan {
		text-overflow: -o-ellipsis-lastline;
		overflow: hidden; //溢出内容隐藏
		text-overflow: ellipsis; //文本溢出部分用省略号表示
		display: -webkit-box; //特别显示模式
		-webkit-line-clamp: 2; //行数
		line-clamp: 2;
		-webkit-box-orient: vertical; //盒子中内容竖直排列
	}

	.flextop {
		display: flex;
		align-items: flex-start;
		justify-content: center;
	}

	.flextops {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
	}

	.yhxiank {
		text-overflow: -o-ellipsis-lastline;
		overflow: hidden; //溢出内容隐藏
		text-overflow: ellipsis; //文本溢出部分用省略号表示
		display: -webkit-box; //特别显示模式
		-webkit-line-clamp: 2; //行数
		line-clamp: 2;
		-webkit-box-orient: vertical; //盒子中内容竖直排列
	}



	.flexbottom1 {
		display: flex;
		align-items: flex-end;
		// justify-content: center;
	}



	.smalltext {
		font-size: 20rpx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #333333;
	}



	.flexstart {
		display: flex;
		justify-content: flex-start;
		align-items: flex-start;
	}

	.flex_wrap {
		flex-wrap: wrap;
	}

	/* 圆角 */
	.radius {
		border-radius: 11rpx;
	}

	.bigtext {
		font-size: 32rpx;
		font-family: Microsoft YaHei;
		font-weight: bold;
		color: #000000;
	}

	.nobigtext {
		font-size: 32rpx;
		font-weight: 400;
		color: #000000;
	}

	.strongtext {
		font-size: 28rpx;
		font-family: Microsoft YaHei;
		font-weight: bold;
		color: #333333;
	}

	.nostrongtext {
		font-size: 28rpx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #333333;
	}

	.lansetext {
		font-size: 28rpx;
		font-family: Microsoft YaHei;
		font-weight: 500;
		color: #228DFF;
	}

	.notitletext {
		font-size: 30rpx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #333333;
	}

	.padding_top {
		padding-top: 30rpx;
	}

	.ershil {
		font-size: 26rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #333333;
	}

	.noershil {
		font-size: 26rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 400;
		color: #333333;
	}

	.shadow {
		box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 0, 0, 0.02);
	}

	.margin_right2 {
		margin-right: 20rpx;
	}

	.margin_right1 {
		margin-right: 10rpx;
	}

	.border {
		border-radius: 16rpx 16rpx 16rpx 16rpx
	}
</style>